<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/WEB-INF/pages/common/taglibs.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/screen.css" /> 
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/list.css" />
<script type="text/javascript" src="${ctx}resources/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}resources/js/messages_cn.js"></script> 
<title>平台管理页面</title>
</head>
<script type="text/javascript">
$().ready(function() {
	$("#name").val("");
	$("#signupForm").validate({
		rules: {
			serialNum: {
				required: true
					　 },
			ip: {
				required: true
					　 },
			port: {
				required: true
					　 }
		},
		messages: {
			serialNum: {
				required: "平台串号不能为空！"
		},
		ip: {
				required: "IP地址不能为空！"
		},
		port: {
				required: "端口不能为空！"
		}
	}});
}); 
</script>
<body>
<div style="margin: 0px; padding-top:20px; ">
	<form action="${ctx}platform/modify.htm" id="signupForm" method="post">
	<input type="hidden" value="${platform.id}" name="id">
	<input type="hidden" value="${pageNo}" name="pageNo">
<table width="95%" cellpadding="0" cellspacing="1" align="center" id="bordertable">
    <tr class="tr1" height="40">
			<td align="right" width="40%">串号:</td>
			<td align="left" width="60%"><input class="input" type="text"  value="${platform.serialNum}" name="serialNum"></td>
	</tr>
    <tr class="tr1" height="40">
			<td align="right" width="40%">密码:</td>
			<td align="left" width="60%"><input class="input" type="text"  value="${platform.pwd}" name="pwd"></td>
	</tr>
    <tr class="tr1" height="40">
			<td align="right" width="40%">IP:</td>
			<td align="left" width="60%"><input class="input" type="text"  value="${platform.ip}" name="ip"></td>
	</tr>
    <tr class="tr1" height="40">
			<td align="right" width="40%">端口:</td>
			<td align="left" width="60%"><input class="input" type="text"  value="${platform.port}" name="port"></td>
	</tr>
    <tr class="tr0" height="40">
       <td align="right" width="40%">状&nbsp;&nbsp;&nbsp;&nbsp;态:
			</td>
			<td align="left" width="60%">
			<select name="state" class="input">
				<option value="1" ${platform.state?"selected":""}>正常 </option>
		 		<option value="0" ${platform.state?"":"selected"}>禁用</option>
			</select>
			</td>
	</tr>
  <tr height="60px;"  class="tr0">
			<td style="padding-right: 20px;text-align: right;"><input class="button" type="submit" value="提交"/></td>
			<td  style="padding-left: 20px;text-align: left;"><input class="button"  type="reset" value="取消" onclick="javascript:history.back();"/></td>
		</tr>
</table>
	</form>
</div>
</body>

</html>